common/lcd.c: cleanup use of global variables
authorWolfgang Denk <[email protected]>
Sat, 5 Jan 2013 09:45:48 +0000 (09:45 +0000)
committerAnatolij Gustschin <[email protected]>
Thu, 21 Mar 2013 08:05:08 +0000 (09:05 +0100)
commit46d1d5dd43e4d7c78f1fd6a5ee958d7b8a8626eb
treeb7f742aa84d55cb10254b2dfdcc5ce5a9f1b8531
parent8b906a9f0b3fd0d4421e08c4fa62f61a01289611
common/lcd.c: cleanup use of global variables

lcd_color_fg and lcd_color_bg had to be declared in board specific
code, but were not actually used there; in addition, we have getter /
setter functions for these, which were not used either.

Get rid of the global variables, and use the getter function where
needed (so far no setter calls are needed).

Signed-off-by: Wolfgang Denk <[email protected]>
Cc: Alessandro Rubini <[email protected]>
Cc: Anatolij Gustschin <[email protected]>
Cc: Bo Shen <[email protected]>
Cc: Haavard Skinnemoen <[email protected]>
Cc: Kyungmin Park <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Nikita Kiryanov <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stelian Pop <[email protected]>
Cc: Tom Warren <[email protected]>
Acked-by: Simon Glass <[email protected]>
Acked-by: Jeroen Hofstee <[email protected]>
[agust: also fixed cm_t35 board while rebasing]
Signed-off-by: Anatolij Gustschin <[email protected]>
arch/arm/cpu/pxa/pxafb.c
arch/powerpc/cpu/mpc8xx/lcd.c
board/cm_t35/display.c
board/mcc200/lcd.c
common/lcd.c
drivers/video/amba.c
drivers/video/atmel_hlcdfb.c
drivers/video/atmel_lcdfb.c
drivers/video/exynos_fb.c
drivers/video/tegra.c
include/lcd.h